package com.higold.cloud.mvp.contract

import com.higold.cloud.base.IBaseView
import com.higold.cloud.base.IPresenter
import com.higold.cloud.mvp.model.bean.UploadPic
import com.higold.cloud.mvp.model.bean.developList.DevelopList

/**
 *    author : lxz
 *    date   : 2019/9/7 10:43
 *    desc   :
 */
interface DevelopListContract {
    interface View : IBaseView {
        /**
         * 设置 Pic
         */
        fun setUploadPic(uploadPic: UploadPic)
        /**
         * 设置 DevelopList
         */
        fun setDevelopList(developList: DevelopList)

        fun showError(errorMsg: String, errorCode: Int)
    }


    interface Presenter : IPresenter<View> {
        /**
         * 获取 UploadPic 地址
         */
        fun getUploadPic(file: String)
        /**
         * 获取 DevelopList
         */
        fun getDevelopList()
    }
}